{extend name="AdminPublic:public"}
{block name="admin"}
 <div class="row"> 
   <div class="col-lg-12"> 
    <section class="panel"> 
     <header class="panel-heading"> 
      <span style="font-size:20px;">您的位置 :</span> 
      <span style="color:#65CEA7;">友情链接管理 &gt; 链接修改</span> 
      <span class="tools pull-right"> <a href="javascript:;" class="fa fa-chevron-down"></a> <a href="javascript:;" class="fa fa-times"></a> </span> 
     </header> 
     <div class="panel-body"> 
      <div class=" form"> 
       <form class="cmxform form-horizontal adminex-form" id="commentForm" method="post" action="/adminlinks/update" novalidate="novalidate">
       <!-- {foreach name="result" item="row"} -->
        <div class="form-group ">
         <div class="col-lg-10"> 
          <input class=" form-control" id="cname" name="id" minlength="2" type="hidden" required="" value="{$res['id']}"/> 
         </div> 
        </div> 
        <div class="form-group "> 
         <label for="cname" class="control-label col-lg-2">链接名称</label> 
         <div class="col-lg-10"> 
          <input class=" form-control" id="cname" name="linksname" minlength="2" type="text" required="" value="{$res['linksname']}"/> 
         </div> 
        </div> 
        <div class="form-group "> 
         <label for="cname" class="control-label col-lg-2">链接地址</label> 
         <div class="col-lg-10"> 
          <input class=" form-control" id="cname" name="linksaddress" minlength="2" type="text" required="" value="{$res['linksaddress']}"/> 
         </div> 
        </div> 
        <div class="form-group "> 
         <label for="cname" class="control-label col-lg-2">Status</label> 
         <div class="col-lg-10"> 
          <input  id="cname" name="status" minlength="2" type="radio" required="" value="0" {$res['status']==0?'checked':''}/>上架
          <input  id="cname" name="status" minlength="2" type="radio" required="" value="1" {$res['status']==1?'checked':''}/>下架 
         </div> 
        </div> 
        <!-- <div class="form-group "> 
         <label for="cname" class="control-label col-lg-2">邮箱</label> 
         <div class="col-lg-10"> 
          <input class=" form-control" id="cname" name="email" minlength="2" type="text" required="" /> 
         </div> 
        </div>  -->
        <div class="form-group"> 
         <div class="col-lg-offset-2 col-lg-10"> 
          <button class="btn btn-primary" type="submit">修改</button> 
          <button class="btn btn-default" type="reset">重置</button> 
         </div> 
        </div> 
       </form> 
      </div> 
     </div> 
    </section> 
   </div> 
  </div>
{/block}